import { BaseControl, BaseStyle, DiyCompType, type IDiyBase } from '@/diy/types'

class DiyQrcode implements IDiyBase {
  id = ''

  type = DiyCompType.base

  componentFunctionName = '二维码'

  componentName = 'DiyQrcode'

  data = {
    src: '',
    text: '请输入内容',
    margin: 1
  }
  style = new BaseStyle({
    height: '160px',
    width: '160px'
  })

  control = new BaseControl({
    keepRatio: true,
    rotatable: true
  })
}

export default DiyQrcode
